package com.ctyun.xstore.vod.video.model;

import com.ctyun.xstore.vod.AbstractVODRequest;
import com.ctyun.xstore.vod.video.model.VideoEnums.SignatureVersion;

public class SignVideoFileRequest extends AbstractVODRequest {

	private String fileId;

	private SignatureVersion signatureVersion;

	private Integer expiresIn;

	public SignVideoFileRequest(String fileId) {
		super();
		this.fileId = fileId;
	}

	public String getFileId() {
		return fileId;
	}

	public void setFileId(String fileId) {
		this.fileId = fileId;
	}

	public String getSignatureVersion() {
		if(null == this.signatureVersion) {
			return SignatureVersion.S3V4.toString();
		}
		return signatureVersion.toString();
	}

	public void setSignatureVersion(SignatureVersion signatureVersion) {
		this.signatureVersion = signatureVersion;
	}

	public Integer getExpiresIn() {
		return expiresIn;
	}

	public void setExpiresIn(Integer expiresIn) {
		this.expiresIn = expiresIn;
	}

	@Override
	protected String getPath() {
		return "/video/file/sign";
	}
}
